home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
csim
/
source.lha
/
source
/
C++SIM
/
Examples
/
Arrivals.cc
next >
Wrap
C/C++ Source or Header
|
1993-06-14
|
476b
|
32 lines
/*
* Copyright (C) 1993
*
* Department of Computing Science,
* The University,
* Newcastle upon Tyne,
* UK.
*/
#include <iostream.h>
#ifndef ARRIVALS_H_
#include "Arrivals.h"
#endif
#ifndef JOB_H_
#include "Job.h"
#endif
Arrivals::Arrivals (double mean) { InterArrivalTime = new ExponentialStream(mean); }
Arrivals::~Arrivals () { delete InterArrivalTime; }
void Arrivals::Body ()
{
for(;;)
{
Hold((*InterArrivalTime)());
Job* work = new Job();
}
}